﻿using System;

namespace GingerGL.IO
{
    //---------------------------------------------------------------//
    /// <summary>
    /// File System Manager
    /// </summary>
    public class FileSystemManager
    {
        //-----------------------------------------------------------//
        #region Variables
        ReferenceFileSystem m_rfilesystem;
        #endregion
        //-----------------------------------------------------------//
        #region Properties
        /// <summary>
        /// Gets/Sets Reference File System
        /// </summary>
        public ReferenceFileSystem ReferenceFileSystem
        {
            get { return m_rfilesystem; }
            set { m_rfilesystem = value; }
        }
        /// <summary>
        /// Gets Current FileSystem from Reference File System
        /// </summary>
        public IFileSystem FileSystem
        {
            get { return m_rfilesystem.FileSystem.FileSystem; }
        }
        #endregion
        //-----------------------------------------------------------//
        #region Constructors
        /// <summary>
        /// Initailizes a new insatnce of object
        /// </summary>
        public FileSystemManager()
        {

        }
        /// <summary>
        /// Initailizes a new insatnce of object
        /// </summary>
        public FileSystemManager(IFileSystemContainer container)
        {
            m_rfilesystem.FileSystem = container;
        }
        #endregion
        //-----------------------------------------------------------//
    }
    //---------------------------------------------------------------//
}
